Module-level declarations
Types
Link copied to clipboard
entity authorized_contract
Link copied to clipboard
struct authorized_contract_dto
Link copied to clipboard
struct companion_dto
Link copied to clipboard
struct companion_token_dto
Link copied to clipboard
object companions_config
Link copied to clipboard
struct companions_config_dto
Queries
Link copied to clipboard
@mount("companions.get_all_companions")
query get_all_companions(account_id: byte_array): list<companion_dto>
Link copied to clipboard
@mount("companions.get_authorized_contract_by_evm_address")
query get_authorized_contract_by_evm_address(evm_address: byte_array): authorized_contract_dto?
Link copied to clipboard
@mount("companions.get_authorized_contract_by_name")
query get_authorized_contract_by_name(name: text): authorized_contract_dto?
Link copied to clipboard
@mount("companions.get_authorized_contracts")
query get_authorized_contracts(): list<authorized_contract_dto>
Link copied to clipboard
@mount("companions.get_companion_info")
query get_companion_info(token_id: integer, evm_address: byte_array): companion_dto?
Link copied to clipboard
Link copied to clipboard
@mount("companions.get_equipped_companions")
query get_equipped_companions(account_id: byte_array): list<companion_dto>
Operations
Link copied to clipboard
@mount("companions.register_authorized_contract")
operation register_authorized_contract(evm_address: byte_array, name: text)
Link copied to clipboard
@mount("companions.register_batch_companion")
operation register_batch_companion(companions: list<companion_dto>)
Link copied to clipboard
Link copied to clipboard
@mount("companions.set_max_equipped_companions")
operation set_max_equipped_companions(max_equipped_companions: integer)
Link copied to clipboard
@mount("companions.toggle_companions")
operation toggle_companions(account_id: byte_array, auth_descriptor_id: byte_array, companions: list<companion_token_dto>)
Link copied to clipboard
@mount("companions.update_companion_metadata")
operation update_companion_metadata(token_id: integer, evm_address: byte_array, metadata: json)